package com.cs.study.homework._0301;

import java.util.Calendar;
import java.util.Scanner;

public class Demo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();

        try {
            int num = Integer.parseInt(s);
        } catch (NumberFormatException e) {
            System.out.println("请输入数字");
            String s1 = sc.nextLine();
            s = s1;
        }
        System.out.println(s);
    }
}
